﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Vici.Mvc;
namespace web
{
    /// <summary>
    /// 基础控制器 主要控制前台
    /// </summary>
    public class BaseController : SessionController
    {

        [BeforeAction]
        public void BeforeAction()
        {
            #region 加载模板
            this.ChangeLayout("Master/BaseMaster");
            #endregion
            #region 加载CSS
            //View.RegisterCSSInclude("~/Styles/Layout.css");
            //View.RegisterCSSInclude("~/Styles/Main.css");
            //View.RegisterCSSInclude("~/Styles/Head.css");
            //View.RegisterCSSInclude("~/Styles/Bottom.css");
            #endregion
            IncludeJq();
            IncludeParallaxSlider();
            ViewData["PageTitle"] = this.SiteName;
            ViewData["SiteKeywords"] = this.SiteKeywords;
            ViewData["SiteDescription"] = this.SiteDescription;
        }
    }
}